import Vue from 'vue'
import App from './App'
import uView from 'uview-ui'
import request from './common/request.js'
import requestYz from './common/requestYedh.js'
import viewData from '@/components/scrollView.vue';
import url from './common/config.js'
import url2 from './common/configYedh.js'

import router from './router'

// 导入invite.js
import invite from './pages/invite/invite'
// 安装插件
Vue.use(invite)

import {
	RouterMount
} from './js_sdk/hhyang-uni-simple-router/index.js';
//百度地图引用
// import BaiduMap from 'vue-baidu-map'
// Vue.use(BaiduMap,{
// 	ak:'R9qggf9Dgh02UG3Loyk9Yxqv'
// })


const currentVersion = {
	id: 12
}
Vue.use(uView);
Vue.config.productionTip = false
Vue.component('viewData', viewData);
Vue.prototype.$current = currentVersion
Vue.prototype.$request = request
Vue.prototype.$url = url

Vue.prototype.$requestYz = requestYz
Vue.prototype.$url = url2
App.mpType = 'app'


const app = new Vue({
	...App
})


import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app)

// #ifdef H5
RouterMount(app, '#app');
// #endif

// #ifndef H5
app.$mount()
// #endif
